#!/usr/bin/env python
# _*_coding:utf-8_*_

"""
@Time :    2019/8/25 14:08
@Author:  ThinHeader
@File: urls.py
@Software: PyCharm
"""
from django.conf.urls import url

from wehelp.views import KanjiaInfoListView, KanjiaInfoAddView, KanjiaInfoShelveView, KanjiaInfoDeleteView, \
    KanjiaInfoEditView, KanInfoJoinView, KanjiaInfoMasterView, KanjiaOrderListView, MobileListView

urlpatterns = [
    # 活动列表
    url(r'^list/(?P<shop_id>[0-9]+)$', KanjiaInfoListView.as_view(), name='list'),
    # 活动添加
    url(r'^add/(?P<shop_id>[0-9]+)$', KanjiaInfoAddView.as_view(), name='add'),
    url(r'^edit/(?P<shop_id>[0-9]+)$', KanjiaInfoEditView.as_view(), name='edit'),
    # 活动上下架
    url(r'^shelve/(?P<shop_id>[0-9]+)$', KanjiaInfoShelveView.as_view(), name='shelve'),
    # 活动删除
    url(r'^delete/(?P<shop_id>[0-9]+)$', KanjiaInfoDeleteView.as_view(), name='delete'),

    # mobile端路由         带支付业务，不能再加/了，否则商户平台配置无效，支付提示URL未注册
    url(r'^join_(?P<product_id>\d+)$', KanInfoJoinView.as_view(), name='join'),
    url(r'^help_(?P<master_id>\d+)$', KanjiaInfoMasterView.as_view(), name='help'),
    url(r'^mobile_list$', MobileListView.as_view(), name='mobile_list'),

    # 订单路由
    url(r'^order_list/(?P<shop_id>[0-9]+)$', KanjiaOrderListView.as_view(), name='order_list'),

]
